package cn.com.nes.mybatis.agent.crm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户操作记录表
 * @TableName log_operate
 */
@TableName(value ="log_operate")
@Data
public class LogOperate implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "uuid")
    private String uuid;

    /**
     * 线索ID
     */
    @TableField(value = "clueId")
    private String clueid;

    /**
     * 客户ID
     */
    @TableField(value = "customerId")
    private String customerid;

    /**
     * 商机ID
     */
    @TableField(value = "opportunityId")
    private String opportunityid;

    /**
     * 项目ID
     */
    @TableField(value = "projectId")
    private String projectid;

    /**
     * 操作类型 1 线索 2 客户 3 商机 4 项目
     */
    @TableField(value = "type")
    private String type;

    /**
     * 用户ID
     */
    @TableField(value = "userid")
    private String userid;

    /**
     * 用户标识
     */
    @TableField(value = "username")
    private String username;

    /**
     * 所属公司
     */
    @TableField(value = "companyId")
    private String companyid;

    /**
     * 操作时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 操作内容
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 退回原因
     */
    @TableField(value = "memo")
    private String memo;

    /**
     * sql语句保存
     */
    @TableField(value = "sqllog")
    private String sqllog;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}